import React from 'react'
import { Ionicons } from '@expo/vector-icons'
import { variables } from '../styles'

export const Icon = ({
  name,
  size = variables.icon_size_md,
  color = variables.color_icon_base,
  outline = true,
}) => (
  <Ionicons
    name={'ios-' + name + (outline ? '-outline' : '')}
    size={size}
    color={color}
  />
)
